<script setup>
  import {ref} from "vue";
  import axios from "axios";
  import {ElMessage} from "element-plus";

  let dto = ref({})

  function sq() {
    axios.post('/flow/qj/sq',dto.value).then(resp=>{
      ElMessage.success(resp.msg)
    })
  }
</script>

<template>
  <h3>请假申请</h3>
  请假类型:<el-input v-model="dto.type" /> <br>
  开始时间:<el-input v-model="dto.begin" /> <br>
  结束时间:<el-input v-model="dto.end" /> <br>
  天数:<el-input v-model="dto.day" /> <br>
  事由:<el-input v-model="dto.content" /> <br>
  <el-button @click="sq">提交申请</el-button>
</template>

<style scoped>

</style>
